package dao

import "gorm.io/gorm"

type Message struct {
	gorm.Model
	SendId      int    `json:"sendId" gorm:"type:int(10);not null;comment:'发送者编号'"`
	ReadId      int    `json:"readId" gorm:"type:int(10);not null;comment:'读取者编号'"`
	Content     string `json:"content" gorm:"type:varchar(200);comment:'发送的消息'"`
	MessageType int    `json:"messageType" gorm:"type:tinyint(1);comment:'1-文本消息2-图片消息3-语音消息'"`
	Type        int    `json:"type" gorm:"type:tinyint(1);default:1;comment:'1-未读2-已读'"`
}
